package com.woniuxy.user.service;

import com.woniuxy.commons.request.ResPage;
import com.woniuxy.user.dto.DepartmentDto;
import com.woniuxy.user.entity.Department;
import com.woniuxy.user.vo.DepartmentVo;

import java.util.List;

public interface DepartmentService {
    ResPage<Department> getDepartmentList(DepartmentVo departmentVo);

    Boolean addDepartment(Department department);

    Boolean editDepartment(Department department);

    Boolean enableDepartment(Integer id);

    Boolean disableDepartment(Integer id);

    Boolean deleteDepartment(Integer id);

    Boolean checkName(String name);

    List<Department> getAllDepartmentList();

    List<DepartmentDto> getDepartmentListForEmployee();

    int increaseDepartmentNum(Integer id);

    int decreaseDepartmentNum(Integer id);
}
